class CreateGenerations < ActiveRecord::Migration
  def self.up
    create_table :generations do |t|
      t.integer  :project_id, :null => false
      t.datetime :start_time
      t.datetime :end_time
      t.datetime :bug_list_download_start_time
      t.datetime :bug_list_download_end_time
      t.datetime :rendering_pages_start_time
      t.datetime :rendering_pages_end_time
      t.datetime :rendering_graphs_start_time
      t.datetime :rendering_graphs_end_time
      t.integer  :generator_id, :null => false
      t.boolean  :complete, :default => false

      t.timestamps
    end
  end

  def self.down
    drop_table :generations
  end
end
